package com.by.service.impl;

import com.by.bean.User;
import com.by.common.crud.BaseServiceImpl;
import com.by.mapper.UserMapper;
import com.by.service.UserService;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl extends BaseServiceImpl<User, UserMapper> implements UserService {
    /**
     * 查询用户是否存在
     * @param account
     * @return
     */

    @Override
    public int queryUserByAccount(String account) {
        return baseMapper.queryUserByAccount(account);
    }

    /**
     * 查询用户信息
     * @param account
     * @return
     */
    @Override
    public User queryByAccount(String account) {
        return baseMapper.queryByAccount(account);
    }
}
